using System;
using System.Collections;

namespace Thinxoft.HttpLib
{
	/// <summary>
	/// Represents the HttpCookie collection
	/// </summary>
	public interface IHttpCookies
	{
		/// <summary>
		/// Number of cookies in the collection
		/// </summary>
		int Count
		{
			get
				;
			
		}

		/// <summary>
		/// indicates whether the given cookie, identified by name, is in the collection
		/// </summary>
		/// <param name="cookie"></param>
		/// <returns></returns>
		bool HasCookie(string cookie);

		/// <summary>
		/// adds a cookie to the collection
		/// </summary>
		/// <param name="name"></param>
		/// <param name="val"></param>
		void Add(string name, string val);

		/// <summary>
		/// returns  a cookie with the given  name
		/// </summary>
		string this[string key]
		{
			get
				;
		}
		

		/// <summary>
		/// retrieves an enumerations
		/// </summary>
		/// <returns></returns>
		IEnumerator GetEnumerator();
	}
}
